<div class="command-bar">
<?php 
$buttons[0]['title'] = ucfirst($txt->getWord('insert').' '.$txt->getWord('new_ad'));
$buttons[0]['href'] = '/c/'.$com->getComId().'/?edit=ad';
$buttons[0]['params']['class'] = 'btn btn-primary';

$buttons[1]['title'] = ucfirst($txt->getWord('my_ads'));
$buttons[1]['href'] = '/c/'.$com->getComId().'/?list=ad';
$buttons[1]['params']['class'] = 'btn';

$com->setButtonsContent($buttons);
unset($buttons);

echo getButtonsHTML($theme->HFBSets[$theme->ComHFB]['button'], $com->getButtonsContent()); 
?></div>